package com.an;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test01 {
    @Test
    public void test01(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("tip.xml");
        nb b=(nb) ac.getBean("nb");
        System.out.println(b);
        ((ClassPathXmlApplicationContext)ac).close();
    }
}
